package com.ruanyun.modular.ry.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 数据字典表
 * </p>
 *
 * @author 刘耀
 * @since 2020-12-15
 */
@TableName("ry_t_dict")
public class TDict implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 代码 : 字典代码，唯一
     */
    @TableField("code")
    private String code;

    /**
     * 字典名称 : 字典名称
     */
    @TableField("name")
    private String name;

    /**
     * 上级字典主键 : 上级字典编号，顶级字典为0
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 字典项描述 : 该字典项的说明
     */
    @TableField("dict_describe")
    private String dictDescribe;

    /**
     * 值
     */
    @TableField("dict_value")
    private String dictValue;

    /**
     * 图片
     */
    @TableField("images")
    private String images;

    /**
     * 创建时间 : 当前字典项的创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getDictDescribe() {
        return dictDescribe;
    }

    public void setDictDescribe(String dictDescribe) {
        this.dictDescribe = dictDescribe;
    }

    public String getDictValue() {
        return dictValue;
    }

    public void setDictValue(String dictValue) {
        this.dictValue = dictValue;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Dict{" +
        "id=" + id +
        ", code=" + code +
        ", name=" + name +
        ", parentId=" + parentId +
        ", dictDescribe=" + dictDescribe +
        ", dictValue=" + dictValue +
        ", images=" + images +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
